#include <stdio.h>
#include <string.h>
#include "tchManage.h"
int main(int argc, const char* argv[])
{
	FILE* fap = fopen("tchList.txt","a");
	if(NULL == fap)
	{
		perror("fopen");
		return 1;
	}
	Teacher tch[10];
	char str[256] = {};
	for(int i = 0; i < 10; i++)
	{
		strcpy(tch[i].name,"name");
		strcpy(tch[i].password,"password");
		tch[i].id = 1001+i;
		tch[i].sex = 'w';
		tch[i].flag = 0;
		sprintf(str,"%s %s %d %c %hhd\n",tch[i].name,tch[i].password,tch[i].id,tch[i].sex,tch[i].flag);
		fputs(str,fap);
	}

	fclose(fap);
	fap = NULL;
}
